//
//  CommondResModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/9/14.
//

import UIKit
import ObjectMapper
class CommondResModel : Mappable {
    var code : String?
    var data : Any?
    var msg : String?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code <- map["code"]
        data <- map["data"]
        msg <- map["msg"]
    }
}

///服务model
class ServerResModel: Mappable {
    var data : [ServerModel]?
    func mapping(map: Map) {
        data <- map["data"]
    }
    required init?(map: Map) {}
}

class ServerModel: Mappable {
    var h5Url : String?
    var kafka : String?
    var siteUrl : String?
    var name: String?
    var uFlag: String?   //自定义
    func mapping(map: Map){
        h5Url <- map["h5Url"]
        kafka <- map["kafka"]
        siteUrl <- map["siteUrl"]
        name <- map["name"]
        uFlag <- map["uFlag"]
    }
    required init?(map: Map) {}
}


